package com.keshe.order.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.data.annotation.Id;

import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("oms_return")
public class ReturnEntity {

    @TableId
    private Integer returnId;

    private Integer orderId;

    private String returnSn;

    private Integer returnStatus;

    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date applyTime;

    private BigDecimal returnAmount;

    private String returnReason;

    private String returnNotes;

    private String returnPhoto;

    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date handleTime;

    private String handleNotes;

    private String contactName;

    private String contactPhone;

    private Integer returnType;

    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date createTime;

    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date updateTime;

    private Integer isDeleted;

    @TableField(exist = false)
    private OrderEntity order;

    @TableField(exist = false)
    private UserEntity user;
}
